package com.javaee.term.service;

import com.javaee.term.data.TurnOver;
import com.javaee.term.dto.ContactDetailDto;
import com.javaee.term.dto.ContactDto;
import com.javaee.term.model.Contact;
import com.javaee.term.service.base.IBaseService;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface ContactService extends IBaseService<Contact> {

    //分页查询
    List<Contact> findByPage(Map<String,Object> data);
    //查询记录条数
    public  Integer findAllCount();

    List<ContactDto> findContactAndCustomer(Integer manId);
    //查询每年年营业额
    List<TurnOver> getTrunOverData();
    /**
     * 统计某年每个月
     */
    List<TurnOver> getTheSumEachMouth(String year);
    /**
     * 统计某年每个周
     */
    List<TurnOver> getTheSumEachWeek(String year);
}
